﻿#pragma warning disable 1591

using System.Collections.Generic;

namespace DM4Script
{
    // ReSharper disable InconsistentNaming
    public static class ScriptConst
    {
        /// Script default
        public const string ScriptDefault = @"DECLARE TASK TaskDefault MODULE {0} SESSIONCOUNT={1} PRIORITY={2} RUN ON TaskDefault: BREAK;";
        public const string ScriptDefaultGroup = @"DECLARE {0} RUN {1}";
        public const string ScriptDefaultDeclareGroup = @"TASK TaskDefaultGr_{0} MODULE {0} SESSIONCOUNT={1} PRIORITY={2}";
        public const string ScriptDefaultOnGroup = @"ON TaskDefaultGr_{0}: BREAK;";
        
        /// Property default
        public const string ResulRecords = "RECORDS";
        public const string ResulErrors = "ERRORS";
        public const string ResulTraffic = "TRAFFIC";
        public const string ResulStartTime = "START_TIME";
        public const string ResulEndTime = "END_TIME";
        public const string ResulCode = "RESULT_CODE";
        public const string ResulMessage = "RESULT_MESSAGE";
        public static HashSet<string> propertyDefault = new HashSet<string> { ResulRecords, ResulErrors, ResulTraffic, ResulStartTime, ResulEndTime, ResulCode, ResulMessage };

        /// Command
        public static HashSet<string> command = new HashSet<string> { "BREAK" };

        public const string SessionsCount = "SESSIONCOUNT";
        public const string Priority = "PRIORITY";
        public const string IgnoreErrors = "IGNOREERRORS";

        /// Task parameters
        public static HashSet<string> taskParam = new HashSet<string> { SessionsCount, Priority, IgnoreErrors };

        public const int DefaultNULLId = -1;

    }
}
